package com.ygu.websocket.srevice.impl;

import com.ygu.websocket.srevice.LoginService;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Override
    public void renewalTokenIfNecessary(String token) {

    }

    @Override
    public Long getValidUid(String token) {
        return null;
    }

    /**
     * 需要返回的是token
     * @param id 用户id
     * @return token
     */
    @Override
    public String login(Long id) {
        //TODO:在登入之前是要先生成一个jwt
        //TODO:在存入到redis里
        return null;
    }
}
